import request from '@/utils/request';

// 查询模型基本信息列表
export function listApiInfo(query) {
  return request({
    url: '/model/collection/list',
    method: 'get',
    params: query
  })
}

// 查询模型基本信息详细
export function getApiInfo(id) {
  return request({
    url: '/model/collection/' + id,
    method: 'get'
  })
}

// 新增模型基本信息
export function addApiInfo(data) {
  return request({
    url: '/model/collection',
    method: 'post',
    data: data
  })
}

// 修改模型基本信息
export function updateApiInfo(data) {
  return request({
    url: '/model/collection',
    method: 'put',
    data: data
  })
}

// 删除模型基本信息
export function delApiInfo(id) {
  return request({
    url: '/model/collection/' + id,
    method: 'delete'
  })
}


export function listApiInfoForIndex(query) {
  return request({
    url: '/model/collection/index/list',
    method: 'get',
    params: query
  })
}
